package com.cdd.goods.controller;

import com.cdd.goods.service.IGoodsShopService;
import com.common.untils.CommonResult;
import com.common.vo.ShopVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lzl
 * @since 2022-09-01
 */
@RestController
@RequestMapping("/goods/goodsShop")
public class GoodsShopController {
    @Autowired
    private IGoodsShopService iGoodsShopService;
    @PostMapping("/selectshop/{currentPage}/{pageSize}")
    public CommonResult selectshop(@PathVariable Integer currentPage, @PathVariable Integer pageSize, @RequestBody ShopVo shopVo){
        return  iGoodsShopService.selectshop(currentPage,pageSize,shopVo);
    }
    @PostMapping("/gerShopGoodsEchar")
    private CommonResult gerShopGoodsEchar(){
        return iGoodsShopService.gerShopGoodsEchar();
    }

}
